package com.yvan.springmvc;

/**
 * app状态码枚举类
 * Created by zzy on 2018/1/29.
 */
public enum AppStatusEnum {
    ERROR(0, "访问失败"),
    SUCCESS(1, "访问成功"),
    NOT_LOGIN(302, "用户未登录"),
    YET_REG(201, "用户已注册");

    private Integer status;

    private String msg;

    AppStatusEnum(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }
}
